#pragma once

#include "Misc/EngineEditorMacros.h"
#include "Object/Object.h"
#include "Framework/Tickable.h"
#include "EditorToolTipWindowView.m.h"

class RWindow;
class REditorToolTipWindowViewModel;

RCLASS()
class REditorToolTipWindowView : public RObject , public ITickable
{
    ROBJECT

public:
    void BindViewModel(TSharedObjectPtr<REditorToolTipWindowViewModel> InViewModel);

protected:
    TSharedObjectPtr<REditorToolTipWindowViewModel> ViewModel;

    TSharedObjectPtr<RWindow> Window;

    virtual void Tick(float DeltaSeconds) override;
    void UpdateWindowPositionAndSize();
};